import { createRouter, createWebHistory } from 'vue-router'
import StudentListView from '../views/StudentList.vue'
import MnistView from '../views/MnistPrediction.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      redirect: '/student'
    },
    {
      path: '/student',
      name: 'student',
      component: StudentListView
    },
    {
      path: '/mnist',
      name: 'mnist',
      component: MnistView
    }
  ]
})

export default router